package com.cy.pj.eiems.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cy.pj.eiems.entity.SysUserCommentVo;
import com.cy.pj.eiems.service.SysUserCommentService;
import com.cy.pj.eiems.vo.JsonResult;
import com.cy.pj.eiems.vo.PageObject;

@RestController
@RequestMapping("/userComment/")
public class SysUserCommetController {
	@Autowired
	SysUserCommentService sysUserCommentService;
	@RequestMapping("findUserCommets")
	public JsonResult findUserComments(String username,Integer pageCurrent) {
		PageObject<SysUserCommentVo> findUserComments = sysUserCommentService.findUserComments(username, pageCurrent);
		System.out.println(findUserComments);
		return new JsonResult(findUserComments);
	}
}
